package cn.edu.scau.cmi.zhangjunjia.hibernate.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


public class Major implements Serializable {

	private Long id;
	private String name;
	private Set students = new HashSet(0);
	
	/** default constructor */
	public Major() {
	}

	/** minimal constructor */
	public Major(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Major(Long id, String name, Set students) {
		this.id = id;
		this.name = name;
		this.students = students;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Set getStudents() {
		return students;
	}
	public void setStudents(Set students) {
		this.students = students;
	}
}